ubusd: treat EACCES on write like EAGAIN
authorFelix Fietkau <[email protected]>
Tue, 1 Jul 2025 18:31:35 +0000 (20:31 +0200)
committerFelix Fietkau <[email protected]>
Tue, 1 Jul 2025 18:31:36 +0000 (20:31 +0200)
Apparently it can happen if the write buffer is full. Do not cut the connection
in that case.

Signed-off-by: Felix Fietkau <[email protected]>
ubusd_main.c

index adbd2932be3d22a1317ca8a33be50fb30662f7cd..46066f457bc4780368f5b11a0bfc9355c99f162e 100644 (file)
@@ -88,6 +88,7 @@ static void client_cb(struct uloop_fd *sock, unsigned int events)
                        switch(errno) {
                        case EINTR:
                        case EAGAIN:
+                       case EACCES:
                                break;
                        default:
                                goto disconnect;